const seq = require('sequelize'),
      {STRING,INT,TEXT,DOUBLE,DATE} = require('../../config/db_type_config');
const Essay = seq.define('essay',{
    title:{
        comment:'essay title',
        type:STRING,
        allowNull:false
    },
    content:{
        comment:'essay content',
        type:STRING,
        allowNull:false
    },
    type:{
        comment:'essay type',
        type:INT,
        allowNull:false

    },
    createUpdateTime:{
        comment:'essay time',
        type:DATE,
        allowNull:false
    },

})       